package com.wunu.zn.api.appliance.model;

import common.plugin.mybatis.Db;
import common.plugin.mybatis.Model;
import common.plugin.mybatis.Table;

@Table("t_chinaid_user")
public class UserEntity  extends Model<UserEntity>{
	/**
	 * 根据用户主键ID查询用户信息
	 * @param orderId
	 * @return
	 */
	public static UserEntity findByOpenId(String openId){
		String sql = "SELECT * FROM t_chinaid_user WHERE openId = #{openId} limit 1 ";
		return  Db.findFirst(UserEntity.class, sql, "openId", openId);
	}
	
}
